package com.xdhl.fu.flight.info.api.mongodb.domain;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xdhl.fu.flight.info.api.mongodb.MongodbConstants;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.io.Serializable;

/**
 * 航班预订信息
 *
 * @author 朱力维
 * @time 2022/7/2 13:34
 */
@Data
@Document(collection = MongodbConstants.COLLECTION_NAME_FLIGHT_RESERVATION)
public class MGReservation implements Serializable {

    /**
     * 订单流水号
     */
    @MongoId
    private String dataId;

    /**
     * 会员数据ID
     */
    private String memberDataId;

    /**
     * 订单信息
     */
    private JSONObject order;

    /**
     * 会员信息
     */
    private JSONObject member;

    /**
     * 乘客信息
     */
    private JSONArray passengers;

    /**
     * 航班信息
     */
    private MGFlightSchedule flightSchedule;

}
